EventMapper

class EventMapper

EventMapper is responsible for mapping events carried by EventResponseFrame to concrete events representations.

Constructors

EventMapper
Link copied to clipboard
fun EventMapper()

Types

Companion
Link copied to clipboard
object Companion

Functions

deserialize
Link copied to clipboard
fun deserialize(eventFrame: EventResponseFrame): Event
Deserializes EventResponseFrame into concrete event type representation using serializer returned by EventSerializers.getByEventName.
fun <T : Event> deserialize(eventFrame: EventResponseFrame, eventSerializer: KSerializer<T>): T

Sources

jvm source
Link copied to clipboard